Fix koan's get_insert_script()

See https://bugzilla.redhat.com/show_bug.cgi?id=1047350
Merge pull request #869 from jmaas/release24

Fix koan's get_insert_script()