drop file_dup, fix file_update in the rm callback