Fix regression in Git Annex permission check

Merged Stan Hu requested to merge fix-git-annex-regression into master

The changes in git-annex-shell mean a different thing than git-receive-pack. Revert to the previous code and use a simple check whether Git Annex is enabled.