Reworked the tooling api build action classpath detection so that it deals with classes that are not loaded by a URLClassLoader.