Cleaned up MacOS stuff and made compatible with Linux Mint