use profile.d instead of writing to bashrc.