kernel: Initialize the dll path from the main exe name explicitly since ImagePathName is not always set at that point.