Fix inexisting path exit code for newer versions of node.