Improve build routine to auto-detect all test prjs