Corrected loading of resources
http://stackoverflow.com/questions/16019502/classloader-finds-resource-only-in-specific-threads