Fixed getRepoDir() when dealing with the default module