Bug fix: Abort if there are runtime dependencies on test distributions

Forgot to grep for only Test- project dependencies, and didn't test
this well enough before merging the commit, otherwise this would be a
fixup.