Fix read-passwd scenario for Emacs 24.2.1

See also: #64 and #65