build: keep official apply_profile-definitions file and if available also source a private file