Fixed an inverted check in the config application.

The result of this inversion was that every attribute of a block was
overwritten with the config's default value.
Includes some minor fixes for directory blocks.