Remove dead code.
Fix bug in file open logic.

Previously the app would always open a file called "YES" when run from
Xcode.
Update submodules (plus a one-line compile fixed related to the update).