Improved automated installer. Tested on Ubuntu (precise) and RHEL/CentOS (6.5)