more robust function run_cmd, unzip