[utils] added a ni_realpath utility wrapper
[appconfig] added ni_get_global_config_dir and path

The ni_set_global_config_path function now also resolves
to absolute (for daemons) and rejects incorrect paths.
Fail when the global --config path gets rejected