Improved show function to acknowledge dev env.

The previous code would do a .downcase on a nil, and return error. Because in a local dev environment, the openshift reference wouldn't work. This is just a refactor, doesn't change the previous behaviour on openshift in any way.