Refactor get-timing-stats code dealing with files

Use boost::filesystem to enhance portability of file system manipulations.
Remove system() calls, except for the call to the timing program itself.