Improve smoketest
Fix Ubuntu support
Add RHEL support

Co-Authored-By: "Sergey V. Yudin" <tsipa740@gmail.com>
Merge pull request #18 from vuntz/pr5

Ubuntu/RHEL support + improved smoketest