Fixing basename for files with UNIX paths.