Scanning public directory, replacing CDN prefix in files and uploading to S3. Respects local config.