fix bash if statement