improved remote url detection for github commands