Patch by Thomas Viehmann: remove code copy of getpass