several fixes to the process-archive.sh script...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>