refactor to maintain the modules and commands in the ~/.pagoda folder.