Fix comparisons in bash