Fixes #5342: correct inventories on windows

Why not use the ```${inventory.UserListFile}``` variable as before? If there's a problem with this, please add a comment in the code explaining why for future reference.