version_compare() did not work correctly.
Was introduced in 26ba2573 by @goude,
none of the comparisons were adjusted despite
the return values being different from the replaced function.
Fix remote URL handling

* list() was missing a 'cd' into the repo directory.
* git-symbolic-ref's --short option is fairly recent and
  should be avoided for now.
Merge pull request #43 from jjlin/fix-remote-url

Fix remote URL handling.
Avoid --short option when calling symbolic-ref, it's fairly new.