More bug fixes for module dependency installation