Update PingCommand.java to allow pinging of remote host.