fixing setup bugs as @environment is not defined

Without this the setup of an app with passanger will always fail.