using `File.getCanonicalPath` for validation in RecentFilesMenu