Fixes for Bash compatibility during shell init