add python -m support, add automatic output dir cleanup option, rework rendering action check