This patch series was written to fix [RHBZ#1222056], but ended up finding (and fixing) a couple other little things along the way.
The first patch adds a test suite for the tools in `utils/dd`. When added, it has two failures - one for the chmod bug, and one unexpected failure where `dd_extract --library` also extracts firmware and modules.
The next two patches fix those two bugs, and the final patch cleans up some unnecessary code.
[RHBZ#1222056]: https://bugzilla.redhat.com/1222056