make `path` to match templates on MS Windows (works there)