daemon: Add some config parsing helpers