Make ctags generation hooks able to work with submodules