Minor helper changes

Automatically sets the CWD, and sorts one of the summary tables
(locations).