Fix cache dir OS detection by "duck typing" default folders