fix recursive creation of folders