bash: fixed warning for nonexistent local