Use __DIR__ in stub entry point

Change-Id: I31590e442efa0caf943b329afc442a0611414ed4