helper: cleanup and -rec folder support for modules