scripts/getver.sh: Use 'git-rev-parse' to detect if tree lies in Git repository