files-backend: add and use files_ref_path()