Bugfix - os.path.dirname returned empty string
This caused an exception while writing pcaps
Solution: http://stackoverflow.com/questions/7783308/os-path-dirname-file-returns-empty