Fixd some more bash stuff. Now works decently on work mac.