add trail \ to dir