Refactored install process. Factored out build.sh