Miscellaneous fixes for try subcommand.

The first commit is independent of the rest, the last one depends on the second one and could be squashed with it but I preferred to keep them separate just in case.

The commit messages should hopefully be self-explanatory.