use __DIR__ in stub entry point

Change-Id: I714e84194d1f8f047e308c10c9a442178ed240cd