shell/profile: Make some compatibility changes.