corrected exit status value from system()