fixes bugs in the extractor staging version detection