Fix issue with requiring submodules when their gems are already installed. [close #279]