Check if the extractor wrote to tmpname or tmpname + ".json"

Signed-off-by: Wieland Hoffmann <themineo@gmail.com>