scripts: sync with master

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

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