improved FEniCS/cppamt search path expansion