bug fix, can't getsize from empty dirs