try to fix handling of subdirs on server startup.