build: add check-controller.sh, a utility to test controller files