Fixing bug with git remote regex