Fix OS X testtar build break

#3007 broke the build on OS X. Instead of using cp, handle copy in super portable way. Every tar on the planet should accept this.

Oblig XKCD: http://xkcd.com/1168/