Add nodejs 0.6 support.

"fs.existsSync" method is not supported in nodejs 0.6. It should have a fallback to "path.existsSync" method.