fixed a bug in funcs.sh

funcs.sh: the function dir_size will return wrong value in hadoop 1.0.3, and I have fixed it.