Use correct comparison operator to verify process success

See #360. This fixes the possibility of silent process failures if exit code is < 0 (e.g. node segfault).