Fix running cli script.