CHANGE: obtain HTML output dir from environment or cmdline, just like data dir; update tests