flexspec: pull target_os from target spec