changed / and \\ to os.sep instead