opencv integration in unreal

Hi I have integrated opencv to my unreal project as a third party and implemented the functionality. Its working fine , the only problem is I have to give paths in my environment variable to my .dll and .lib files, which is not a scalable solution as it would by tiring for user to add the path first and then use the application, i want a solution where unreal itself detects the dll and lib files and uses them whenever needed. I have also dynamically linked the dll in my build.cs file but it is not working.