Add nodejs 0.6 support.

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