Fix problems with relative path calculation for ZIP packaging