Fix to buildTable.py so it properly handles singleton files.