[releng] Issue #8126: purge-ami script not processing correctly