In fact .. the way you did .. this is working for Windows, Macintosh
And for linux it should also work
but what I suggested was 3 cases
- windows
- macintosh
- and if none of the first 2 cases .. then let's consider this is using linux implementation