Fix target discovery for nightly