[gen] don't set filesize on directories

It makes the build to be triggered recursively : each time an 'index.html'
file is updated the parent directory size changes.