Detect exec name earlier.