fix issue with using bower for components. fix issue with relative links for media path