Now detects platform.  I've assumed the only two cases are Windows & posix systems, let me know if you think we're missing a case.