File chooser fully working, feat. special permissions workaround for osx