Handle windows path separator

handle backslash on windows.