toplevel.mk: rescan target metadata if the image makefile changes