Improved dependency installation