Avoid copying the files if not necessary, and update dest dir path to
match the final path