webmark: Support target for both command line and config file