Add support for generating .env.php files during composer install.
more tweaks to how the .env files are generated.