bug fixed, function makedirs create path failed if path not ends with slash