added file exists check prior to unlinking in lib/delete.js