add check whether file exists before patching it
Merge pull request #482 from boegel/clang_patching

add check whether file exists before patching it