Fix size calculation in presence of subdirs