Unwanted creation of empty directories bug fixed.