Ensure compatibility with piqi > 0.6.5

Piqi backwards incompatibly changed the command

        piqi version

to
        piqi --version

so checking of the version would fail for new versions.

This patch makes it work with both commands and also does proper version
parsing.