build: Don't rely on bashism and use $(shell ...)