updated data extract script for dota proper working in linux