use `tar xvzf "$ATTACHMENT_DIR/Attachments.tar.gz"` instead of gunzip + tar.

(so: without the dash for the option, with double quotes in case $ATTACHMENT_DIR has spaces)