small refactoring in sc-web-core; improve ubuntu dependency install script