fixed bash conditionals