write debug files to directory with write perms

[Errno 13] Permission denied: 'scheduledebug10.log