common/hooks: remove file before copy