fixed check for boto.cfg and main