check for ubuntu distribution first
Merge pull request #4604 from jcftang/devel

check for ubuntu distribution first