Use .profile.d to properly set environment variables.