Rename directory_parse to rgui_directory_parse to avoid namespace conlict