Fix issue with compression where e.g. ../../../ would be prepended to paths.