Improved Mac OS build, modified hashNsign to work with new version format