build: apply_profile: respect 'distance'-setting 2/2