Use a more accurate regex for CDN/external paths