Updated function calculating size in dired