Check that submodules have been loaded

Fixes #92