Improve empty directory handling in the local storage storage driver. Contributed by Mahendra M, part of LIBCLOUD-265.