You'll need to move this line into the subsequent `let`-binding, so that `flycheck-check-executable` actually checks, whether "pmake" is present.