CSPACE-6283: Fix conditional expressions related to having found 'wget'. Make 'curl' follow redirects, necessary to download ZIP archives from GitHub.
CSPACE-6283: Slightly clarify conditional logic.