Fixes new stripTail method in FileUtils.