Osx uptime fix

Stops 
```
uptime: /dev/tty??: No such file or directory
```
appearing in the terminal you are running the agent from.