Fix parsing some special chars in depfiles

This allows paths with "[", "]" and "%" to appear in depfiles.
Previously, only "[" would be handled properly.
Fixes #1227.
3 files changed