Make sure pkgutil command always gets returned

There was a bug where, if no version is provided, this method would return `nil` instead of the command string.