slight modification on getting the URL classloader for running on the cluster