Fix checking for ports trees in poudriere