Updated Maya version detection to use API version rather than version from file, to make more robust and to fix for 2013.5.