fix copy function in util.js

we needed to use path.resolve
and not worry about the existence of files.basepath
Merge pull request #43 from UnbounDev/master

fix copy function in util.js