Process the -C option before running RUN_AFTER_FLAGS tools.

This brings the flag more inline with its description: "change to
DIR before doing anything else".

The use case is to make it possible to use -C together with -t msvc.
When debugging Windows builds, it's handy to be able to copy-paste
the commands from "ninja -v" and make them run in the correct
directory by adding this flag.
Add highlighting of rule in build statements

Highlight the rule being used in a build statement.  Also add `.` to acceptable characters in a rule name and relax whitespace matching before the name.
add a test for stat()ing a directory
add more tests for stat()ing a directory
try to fix stat()ing directories on windows
Merge pull request #792 from nico/statdir

try to fix stat()ing directories on windows in statcache code
mark this 1.5.1.git
Merge pull request #755 from zmodem/working_dir_vs_msvc_tool

Process the -C option before running RUN_AFTER_FLAGS tools.
Merge pull request #788 from donkopotamus/patch-2

Add highlighting of rule in build statements