Redmine #5266: Package test fixes for Windows

https://cfengine.com/dev/issues/5266 plus some additional fixes.

All of ``07_packages`` passes on Windows now.