fix the conflict between cygwin and linux in dir track of term-mode
fix the conflict