[PATCH 2/2] ndctl, monitor: refactor parse_config_file