fix bash comparisons