Hopefully fixed cp for osx.