Fix a bug where dump miscalculates the tape size based on -d/-s