Further increase timeout for server to exit
Add a function to run a command if a given file doesn't exist

This is useful for detecting whether the media storage directory is
mounted, and automatically mounting it if necessary.
Remove dead code and add a TODO comment