Ensure gtmver is set

Script relies on gtmver being set, but wasn't. Changed logic for finding
GT.M to set gtmver. gtmver is set to include GT.M version and
architecture because if either the architecture or version change the
objects generated change too.