fix cp -r usage to be cross platform