Bug 1022767 - Fix relative path building in webapp-optimize