Use __DIR__ in stub entry point

Change-Id: I534f4c9ff266183e77e5fc1fc0cb152d59ca937d