Improved handling of nernst/ohmic mod files