setup environment in all shells (i.e. non-login shells)
misc clean-ups