To avoid issues on windows targets I'm starting function escaping "\" on output_file:

```ruby
output_file.gsub!(%r|\\+|, "\\\\\\\\")
```