service: fixed --config-dir validation