fix regression of creating empty folders
0.3.2