Locate patch file relative to output file