use signalstatus if exit status is undefined

fixes failing test_exit_code_signal on OS X