Fixed failure on missing output dirs