Refactor to use bin.write_jar_script