Made the example program cross-platform

I've tested it in Windows, and if you follow the README it works from a fresh clone of the repo.

I haven't tested it on Linux yet, but it SHOULD work and when I get home later tonight I can try it out on Ubuntu. I don't know about OS X, but presumably it should work?

I replaced the shell script with Haskell, because I figure anyone using this will have Haskell on their system anyway.