Fixed up /etc/profile.d/set_oracle_env.sh

Template and custom fact doesn't work (evaluated too early), so just
implemented in set_oracle_env.sh as a conditional check.