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.