Only output version if no tasks were specified

This is less "greedy" and allows tasks to make use of the `--version` argument.