Simplified regexp code
Refactored goto-alternate-git-file to have a more functional style.