Added conditionals to work with Windows out of the box.

This just changes the commands that break Windows, and puts them in conditionals to only run on OSX and Linux.