Fix valid permission regex not recognizing C perms or trailing Ms

I cherry-picked a commit from gitolite-client so that gitlab would be able to create a wild repo.