pathutil: Fix bug in FileName.