Updated dub to latest devel, corrected links and fixed HEAD building

Instead of overriding this method, [which is private](https://github.com/Homebrew/homebrew/blob/e2928904945d513fcead4ddc4e3ff9728b7babeb/Library/Homebrew/download_strategy.rb#L503-507), pass `:shallow => false` to the url method.