scripts: sync with master (and fix precise)

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