Fix problem with status code comparison.

There's an error with comparison - version from git does not return any devices. After patch it works as it should.