Use __DIR__ in stub entry file

Change-Id: I47ff24e74e890b3e79be7a9965cc23176b05a6fa