cleanup: rework these scripts

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>