corrects head tag to work on different root paths