Added cross-platform compatibility and changed working directory for terminal
Added option to set working directly and run commands directly if on mac
Added windows compatibility and cleaned up the code a bit
Proper encoding of windows defaults
Moved the open directory code into a function
Some configuration wasnt detected properly
Merge pull request #2 from tkw1536/master

Cross platform compatibility