adding check that path is not undefined in Nautilus.recursiveFindModules