Fix background process status in Unix

Change the way background process detection is handled in systems
without signals or termios.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>