fixes some bugs introduced by the -c option
Merge pull request #805 from edx/jarv/send-logs-bug-fixes

fixes some bugs introduced by the -c option