makes base href dynamic and css point to a relative directory