Ninja: use cd /D to set directory on Windows

Add_custom_command was unable to handle build and source directories
existing on different drives.
Merge topic 'ninja_add_custom_command_windows' into next

e7c58f6 Ninja: use cd /D to set directory on Windows