UPDATE setup script
- adds os specific settings (osx, linux)
- refactors code