Patch import for installation hooks in offline mode