scripts: a bit of cleanup