added check for perl version, exit if not corresponding to version used to build