add -o param to optionally set the static file output dir