Patch from LIGO: ensure that cp src and dst is not already the same file