Adding detectEnvironment to start.php