Fix permission check to use correct permissions
Remove xhprof calls from AppEnv::init