use output-file instead of fs-extra

https://github.com/shinnn/output-file
update CLI script