Why chruby script doesn't work when in /etc/profile.d?

Is it still there in it’s original place?
/usr/share/chruby/chruby.sh

Maybe, you have to delete it first from /etc/profile.d ?