Specifically, it was always downloading the linux version no matter the platform. So I moved the OS detection to be early in the makefile and verified that I can now download the darwin version of shellcheck.