Improved handling of urls that also contain the .git postfix