Fix resolving app from git remote name.

`-a gitname` now works again. Fixes #40.