Bug 1063347 - change path.existsSync with fs.existsSync.