Fix pkg.install for one-pkg install w/out version

This fixes a bug I introduced in a commit earlier today, which would
affect modules I've been working on to prepare for #3278 (yumpkg,
yumpkg5, and apt). A traditional single package install would fail
if a version was not specified.