Autoconfiguration for cloud hosting environments, OpenShift support

You might want to move this down to where the variable is actually used since it's not a global anymore