bash: fix conditional