Improve config script to set any key from agent config file