Fix 'off by one error' with directory copy