Use a temporary file for commit message
Functions to generate the final script