Fixed host script generation