Issue compiling bernoulli example model in cmdstan 2.17

This bug is what my PR from Nov 8 fixes: https://github.com/stan-dev/cmdstan/pull/584

I recently intentionally refactored the makefiles to share more code and settings because there was a ton of duplication. Maybe I went too far, though I don’t think this bug speaks to that question in either direction as its just in the CmdStan makefile and doesn’t have anything to do with the Stan or Math repo makefiles the CmdStan repo includes.