Converts local file references into CDN references with fallbacks