Updated app system folder and environment switching depending on http host