ensure layers dir exists