Use __DIR__ in stub entry file

Change-Id: I49bb98e4df2af5febfac874b38a0fffc36ee4467