Fix delta pruning filename extraction