made changes to setup script

I was having issues with the setup script on my Linux machine, so I made a shell script to fix those issues. I have no windows machine to test on right now, however I believe it should work.