fixed $path generation for inclusion