Bug 1022767 - Fix relative path building in webapp-optimize

https://bugzilla.mozilla.org/show_bug.cgi?id=1022767