getpaste: modernize option parsing
msshutdown: modernize