scripts/bgdev: a little improvement