cleanup .profile, move relevant things into local env