git-shell-verify: make leading/trailing '/' optional