Refactored install script, added support to Debian/Ubuntu