Modifications to allow compilation in either CMSSW_5_X or CMSSW_6_X

Made a couple of modifications which figure out the SCRAM_ARCH such that globe will compile in 5 and 6