Made submodule installation more robust