modified to run on Ubuntu 14.04
Added rhel support. Yum-dependent. Am sure theres a better way.