simpler git repo detection without unix commands

might be enough for #1