Fixed Bug, build directory size function