Fixing issue with node.js version 0.6 with missing fs.exists method