Renamed getPathByOptionOrConfig to getValueByOptionOrConfig

Renamed getPathByOptionOrConfig to getValueByOptionOrConfig to be more selfdescribing because it does not return only paths.