Added script to facilitate saving of config files.

Also led to a bug fix in looping through arrays in bashrc.