splitted pre-install script for dependencies in two