Fix cross-platform issues in bash config.