- `daemon.py`: Skip health check on macOS with platform check π
- `daemonize.py`: Add debug logging to file and fix detach setting π
- Modify `spawn` function to pass and handle `detach` parameter π
These changes address a compatibility issue with macOS, where the peer
health check was causing failures. By utilizing a platform check, macOS
subsequently bypasses this step. Additionally, logging aids debugging by
providing insights when the daemonize function is entered. Adjusting the
detach behavior in the `spawn` function ensures the daemon process is
initiated properly.