add optional support for submodules

This should play nice with libretro-fetch.sh in its current state