tce: search for the main src from the srcpath if running from the build tree