Only ignore dependencies, not all modules.
Remove unnecessary dirs.