added linux compatibility to testbranch

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