Include t/ in the distrib tarball

Also fixed perl syntax for the version detection snippet.