normalize directory tree