Windows is derpier.  Recoded platform checking.