Refactor conf path computation.