fix version check + sanity check in Geant4 easyblock + style fixes

it's the same for both cases, so why not put it directly here?