Fix tool_test when PWD is not available
Fix tool_test when PWD is not available

This fixes an internal version of our tests.

Change-Id: Ia8ab4f1c6d2b7c0360549f232fc6ca8c072248f4

google/copybara,google/copybara,google/copybara