Fix resource loading.

At least in an OSGi environnement this commit fixes the loading of diagram images (userTask, scripTask ... )