Fix process check on older unix kernels

Fix #849