Replace '\' with '/' in path if DIRECTORY_SEPARATOR is '\’.