added -c config option.
default to current working dir