Add hub support.

Automatically use hub instead of git if it exists.