uptest.sh: Make more Mac-friendly

- Create ~/.nbsstate if it doesn't already exist
- Change log format to match that of upmonitor.py