Fix missing search for program components in priority directories

Bug is caused by confusion of level in component sense and level in
path search context, which is not same.