The dependency file that is being generated should not escape : and # in the filename. This makes the behaviour of the filename escaping similar to clang and GCC and fixes incorrect quoting of paths on Windows.