Only output version if no tasks were specified

This is less "greedy" and allows tasks to make use of the `--version` argument.
`if (versionFlag && tasks.length === 0) {`