Fixed bug with --use-keyfile.