fix filesystem not handle in mac