Fixes regression on recursive mkdir