Make format_path take an entry, not a path