added linux compatibility to testbranch

also added checks for vehicle inventory. (thats not needed until now, i did it just in case someone wants to add inventory content later.)