Fix readpassphrase for BSD only