Dependency check and install