Fix task quota namespacing `.git` extension only appears when user specifies it, so make the regex independent of it. Also, use the Namekey#parse function to remove that extension and trailing slashes. Some gerrit installations might also have a leading slash and hence makes it optional. Change-Id: I772e50046dbdd276e13438749767434d7cb3f430