bash: fix warning, cleanup