Fix and update 'dub' formula

Fixes the formula for 'dub', which had a problem generating version info from the git repository. The fix follows Corey Quinn's suggestion, also used for Saltstack.

Furthermore, adds a devel version and updates the homepage URL.