Compare variables correctly with -n