fixed a bug in funcs.sh

funcs.sh: the function dir_size has some bug, and I have fixed it.