replaced references to path.exists with the Node 0.8 fs.exists

solves issue #286