Made config module_directory a path name object