Most languages will handle file opening transparently, regardless of OS. Is that code sharing? What about the extra bit of logic you have to tack on because file system Y doesn't handle Z?
It also occurs to me that I would rather have 98% code sharing, nicely encapsulated in 1 file, rather than 99% spread over 101 files (not an accusation aimed at this code base).
Still seems impressive.