fix some check_module issues and around

* seems fork(2) doesn't compute as expected
* deal with some unexpected conditions