Ensure submodules are initialised before building

This ensures that when building gem github or a cloned copy that submodules are checked out first.