fix exit code values to be unix compatable