imake: Patch to work with superenv

Closes #16420.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>