Improve check for closure library installation