Fixed loading of yml-file for using in web-application (tomcat)

Implemented a better search for resources.