Fixed exp. image removal

The expired version has to be removed before we attempt an upload.
`chown` and `chgrp` should be done separately, to handle partial
failures.