Fixed bad library search bug, which didn't check the channel path.