Scheduler fix

Scheduler now creates dirs if they don't exist. This closes #42.
@ben-jones, please review this.