redirect to project root  when hosted in openshift

Redirect to project root when hosted in openshift. It may be used for
other hosting enviroments too, possible