resolve dir name