Save existing profile.d if it exists. Normalize paths.