test .path.copy instead of deprecated .IO.copy