Make sure .profile.d directory is present before trying to write to it