Raise an exception if target download directory does not exist
Expose CLI config as an attribute; Fix missing --insecure class_option
Added more tests, minor test refactoring
Do not set the log level to WARN if it's already higher
minor tests cleanup