redirecting stdin with >>> doesn't work on windows, use | instead

Removed some trailing whitespace while I was at it.