Fix bug in can_detect_signals?

The process used to detect signals was spawned incorrectly resulting in
skipping of tests depending on signal detection.

Now the dectection process is spawned directly so the tests will be run
on linux.

Patch by Alexey Borzenkov.

Fixes #243