Fix: [check_ifinitf] return correct path
Create and optimize prefixes based on global prefix