gregor - sometimes naming things makes it clearer what they are. I could just move the code down, but then it would depend on you understanding that the attachment directory is encoded inside the archive file, and that's why we're removing it.
james - the directories use dashes and camelCase, the variables in the script use underscores...