Test for the string length of $package_version rather than it's value

This change threw off the loop and caused provisioning to think that these packages were installed.