add head replacement if missing in rule targets