don't check submodules

   Usually submodules are in modules/ directories. Checking syntax of a
   submodule throws an 'Bad object' error.