IDEA occasionally puts random weird directories that
point to directories inside the .m2/repository folder.

This patch protects against that weirdness.