Fix reference to global_options
Fix method generatePcapFilename