Add handling for Git submodules

Tested with `ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0]`