fixed tests
fixed existsSync using the right node.js version