Fixed a few bugs and typos found in save_config function that were not allowing sickbeard to complete the save of its configuration file.