Very good point...obvious that I was solving playing with this on Windows when I wrote it, before testing on. I've reworked this pull request so this function isn't necessary.