Add ability to pass match option to only copy matched files

Also slightly refactors to eliminate unnecessary dependency on `fs-extra`.