Fix exclude windows test on ensure_package

Update to fix ensure_resource as well
Merge pull request #363 from hunner/fix_windows

Fix exclude windows test on ensure_package