Fixed an issue loading the script autoloader and .env

when running from within another project