Use mktemp
Use bash
Rename plot_all_cpts.sh -> plot_all_cpts.bash