fix jarfile unpack to avoid unnecessary links