private static FilePath Canonical(FilePath path) { try { return path.GetCanonicalFile(); } catch (IOException) { return path.GetAbsoluteFile(); } }