Fix cross platform slashes

Filenames in rev-manifest.json end up with backslashes on Windows. Replace the backslashes with forward slashes as required.

Also fixes bug where if the file names have multiple "." in them only the first "." would be replaced.