cleanup, check for directory vs file instead of relying on ClasspathUtilities.isArchive
simplify settings and tasks