file-copy: add a workaround for FUSE+HDFS to overwrite an existing file with rename(2)