Record the folder where the output file is located during the script run