Fix readpassphrase for BSD