fixup reporting code to make sure the directory exists