Made version detection prefer STDOUT.
Merge pull request #5 from moser/fix/prefer_stdout_on_detection

Made version detection prefer STDOUT.