Keep `build` directory
Use `printf` instead of stream
Fixed guards