fix hotspot report crash where a folder is found (can happen with submodules)