Fix a couple issues with parsing the edit files.

Signed-off-by: nppangband <nppangbanddev@verizon.net>