fixing non-0 exit codes in ruby2.0