Display configuration file path and check if the configuration path points to a regular file; also close the file descriptor on error