inventory: Fix some tracebacks on linux machines inventory