Fix paths when searching/building packages