fixed nodejs unlink issue, eliminated unlink and fs.exists calls