Better version check for git

- Still horrible nonetheless