Fixed bugs in fsutil.