Fix file munging on Windows

On Windows file munging was not working, since it has different path
separator then Unix/Linux/Mac