Added file exist check

Previously the command just threw an error, which is not understandable for the not so node.js-savvy folk. A simple console.log and file check does the trick