Conditional use of fs::canonical only if using filesystem v3