Add GetExecutableDir() and use it to simplify tests.