update script - fix output in CLI. Allow to pass data dir in argv