Replaced printf() by log_msg().
Added new tests to the test suite to validate the --save-rc-stanza command line argument.