Corrects alternatives and profile.d for RedHat

FIXES:  Direct manipulation of symlinks that are under the purview of
alternatives leaves the host in an inconsistent state.  In addition,
JAVA_HOME was not set for profile.d (sh logins).