Fix incorrect exit codes in support scripts