Use current thread's classloader, fix NPE in SBT plugin