build: Fix test running from other then debug targets.