Updating `parse-sim-results.py` script.

Fixing output directory path issue and reintroducing `with` statement
for opening and writing to summary file.