[installer] [host] rework IO, separating OSX and Linux routines in to different code, but keep the io namespace