Tweak to avoid copying when src and dest files are the same