small changes in fileutils