fix bugs on handling modules directory