Fix a bug when create dir "d:\\" on windows or "/" on linux.