bash: check a variable is set or not