builtin/notes: refactor note file path into struct note_data