added linux compatibility

Linux servers are doing Hive calls slightly different.
Since WAI uses hive calls to save vehicles, we need to seperate here.

- Fixed the code to provide linux compatibility.
- Added a config value to keep it optional.