Instead of using hardcode absolute path, generate the patch accordingly.