Harmonized filename construction.

Added a routine to GripPackets so that different executables will use
the same formula to construct filenames for the packet caches.