Fix search for IGNORE_CHECKSTYLE files.

Previously _FindFoldersContaining was being run on a wrong directory
as (os.path.dirname(os.getcwd()) returns one directory up, so in cts/ case
it was running seach on entire Android checkout making very slow.

This CL changes the following:
- Run file search starting from git repository root.
- Add a warning if someone tries to run checkstyle on a commit
  outside of git repository.
- Fix style issues in _FindFoldersContaining
- Start running checkstyle tests on repo upload

Bug: 34113288
Test: locally running cts/ is fast again
Change-Id: I74b57e5069fc8a0acc49ec069f5c530c1b0eb58b
2 files changed