server: ctestInfo fix to return all tests
Prior to this change we were looking at targets. But tests are associated with directories. This change fixes how we gather all tests.
Prior to this change we were looking at targets. But tests are associated with directories. This change fixes how we gather all tests.