fixing bugs in the dependency installation script