ENH: changed shutils.copy -> copyfile to prevent permission bits from being copied causing a failure.

`copy` was only used once in this file, I have changed it to `copyfile` to prevent permission bits from being copied.
fixes #1382