Now the hostos is passed in to  the write_script and is used to output Mac or Linux compilation params. Testing on Linux packaged version and on Mac still required.