Hotfix: correctly read different environments from .env.php or .env.local.php