Use older getDirectoryScanner method for compatibility with old ants.
support weird generic classnames and fall back to system class loader