check for config file present before reading (MarkusH's improved commit)