makes resouces paths relative

fix for Bug #2023
makes component work well behind web front-ends