another attempt at fixing bash conditionals