Fix resize when capacity is 0

Capacity may be zero in duetto, since the long mode is always used
Fix debian rules file