Fix windows detection for rake sunspot commands.

Fixes #579