Better path handling for CDN paths.