Corrected calculations format
Prevent globbing
Removed redundand variable ARCHIVE_DIR