scripts: fix call to main function