Move git version to a shell variable