hlp: check $status shell variable for exit status

Pure csh does not support $? for checking the exit status, which is a
tcsh enhancement.

Tested on Ubuntu 12.04 (csh) and Fedora 20 (tcsh).

Fixes #34.