build: register_patch() better format