journal: use a macro to check for file header flags