Fix behavior of EC2 private key file selection dialog