Maintainer scripts: standardise argument handling and use ‘printf’ for output.