Add check for dependency installation