Move runProcess() to test/utils
Fix JSHint warnings from copied node util
Format error instances to include stack trace