Find package canonical name using better regex