Replaced deprecated path.{exists,existsSync} with fs.{exists,existsSync}. Is backwards compatible for Node.js <0.8.