minor tweaks to bash compatibility fixes.