fix first/last on Darwin

The structure doesn't give these away directly.
sessionLast is the number of the last session.
So we just calculate them.

This is now tested (with a drive) on Mac OS X.