Fixes #5980: have the path of ncf config file configurable