autopch: convert Process::Status to integer 

in newer ruby versions (tried with 1.9.3) $? is a Process::Status object and needs to be converted to an integer