Refactored bash eq/neq