check if `CMSSW_RELEASE_BASE` environment variable is set. Fixes #4229
Signed-off-by: Justas Balcas <juztas@gmail.com>