HIVE-5616 - fix saveVersion.sh to work on mac (Owen O'Malley via Brock Noland)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/maven@1535050 13f79535-47bb-0310-9956-ffa450edef68