moved OS detection code to the relevant (lofi) module