Fixing version check and fixing extractall call bug in scripts