Fix FastTree version check when non-interactive

Fixes the FastTree version check when running in non-interactive mode. Based on @spikebike's suggested regex.

Fixes #1371.