gitignore
Improve target selection logic

When the only uname option is the empty default, do not prompt.
Bugfix: When there is only one match, select it.
Wrap calls to git