Check for node in a platform-independent way

calling readProcessWithExitCode resulted in a runtime error on Windows