Add support for dirname( __DIR__ ) to find-entries.

Change-Id: I7599ba020dd75ffed26f19fd5ecc9c6493598a7b