core: fix edge case in bulk() where the dot representing the current directory would be included.