Quick and dirty fix for pkg_win to exit with error when files are
missing.
Merge pull request #333 from myshkin/restruct

Quick and dirty fix for pkg_win to exit with error when files are missing.
Slightly slower fix for windows