Add support for type and dest in config file (works for initial upload)

Thanks Erwan Loisant
version 0.3.8