Added support for profile.d scripts