Added result dir to mock copyout call