Use __DIR__ in stub entry point

Change-Id: I015f2e04e6641f55655dddfd17285d40e3db12a4