Fix ensure_paths.