Can you explain why the use of URL fixes the issue? I guess it is because URL loads the file as an absolute path while the previous method would load the .env file from the incorrect directory when nested inside module files?