fix osx prefixer and launcher

minor fixes to make launcher work on osx