Fix bug in console output when building with filter
Replace / with _ when writing files