Renamed getPathByOptionOrConfig to getValueByOptionOrConfig because it does not return only paths