Regressions: fix script when options are passed (we should really use argparse here)