minor bugfixes

- double dollar in `Makefile`
- stability for 106
- restore end-of-patch marker for `diff` target for later automatic fetching of patch from the log