[imagebuilder] add $(SUBTARGET) to the filename if available