Fixes #5588: correct handling of inventory on windows
Merge pull request #516 from ncharles/bug_5588/dev/inventory_on_windows

Fixes #5588: correct handling of inventory on windows