Fix in detecting cmssw environment in cmsShow script for patch releases

cmsShow script presumed that the path of the script itself matches $CMSSW_RELEASE_BASE, 
In some cases  this is not true. This change simplifies check for cmssw environment and works for main and patch releases.