modify currentPath return '\' to '/'