DRY out rakefile a little bit

Very small change to commonise git submodule update/init commands between rake tasks.

Barely worth doing but my OCD couldn't ignore it once I had noticed it :)