Fixed regression where unchanged attachments get re-sent on every push

Fixes #326