Things the new script fixes:
- running "calibre --shutdown-running-calibre" as root doesn't seem particularly useful, unless you happen to be running calibre as root.
So now it sudo's to each logged-in user to shutdown.
- Makes sure you run as root.

- Prettier messages when calibre is not yet installed. Instead of getting a lot of "bash: ****: command not found".