changed the logic to save the last commit hash to a file at the end of the program