Updated for Linux compatibility.
Previously required some cache tweaks to get working.
Behavior (generated cache file) should not be affected on other systems.