first check active path, then check settings #1960
Merge pull request #1991 from openscholar/1960-add-pfiles

first check active path, then check settings #1960