build: apply_profile: remove reghack, if applied