Made version detection prefer STDOUT.