allow packages to override the patch directory using the PATCH_DIR variable