Make discovery for resources, plugins and server library relocatable