Updated script to not include git version if not int git repo