prepare.sh: use all-uppercase names for variables
prepare.sh: don't hardcode the names of the files to archive

This change makes the code more robust to future changes.