added support for Node <0.8 by adding a fs.existsSync alternative