Fixed failure to open the .env file