remove bashisms and upstream functions from /etc/profile.d/*.sh scripts