Added support for using '~' for SSH key location.