use path.sep instead of regex