makefiles: Add support for having tests under the programs directory.