Fix logging missing in headless with --log.
Try to find the flash0 directory in headless.
Update tests.
Merge pull request #4566 from unknownbrackets/tests

Update tests, headless tweaks for fonts.