Add working tree check in git_completion

This avoids annoying errors of this type as git status use is embedded with
PS1:
"fatal: you are not on a working tree"

Now git_completion outputs results only if user is inside a GIT repository
and if he is on a working tree.