drafter: bug fix

script preamble incorrect if generated immediately after OS.