YAML configuration now creates a backup of the file in case loading fails

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>