fix mos and MOSROOT usage in a few apps