varmfs.sh: use pkg_install if OS version <=8, pkg if >=9

This is one of two submissions that resolve the same issue.