Fix "undefined" in "no pkg found" message - Refs #284