fix sh if statements