Check the return value of system()