Move GetCanonicalPath() to Helper class.