Improve the logs command.

Check for application's existence, and add an optional -f option, to
make it behave like "tail -f"