Parameterize prepare_dir and archive_dir variables, and change backup_dir to a templated string