Fix ping command if no IP version is specified