fix version detection

Some recent version of spatch are using stdout instead of
stderr to output the version number. This was resulting in
an error.