Implemented generation patch with relative paths