added support for global and local installs
updated so that the profile.d settings could support both global and local installs