Fix reference to .env variables using the ENV hash