add OS check at StimOMatic startup. make setpath_win more general.