normalize directory name