Relax version parsing strictness [#148]

Search the version string anywhere in the output, to handle cases, where
emacs is a wrapper around the real Emacs, which prints messages before
the actual Emacs output.