fix a typo in changing directories in DeepCopy

problem and solution reported by Julia Yarba