Fixed install script to correctly find the latest tag.

This seems to be the cause of templates crashes.

Thanks to @tjarratt, for letting us look at his computer for this one.