Fix typo.
Tweak classloaders in scala task to make it more robust.