Improve openvz detection.

Add some tests