Missed this before but this and the script_path below should be created by whatever Go's equivalent of mkstemp(3) is.