Cleaned up and implemented fs.copy (untested)