Hash the state qualifier to make it shorter

We were having problems with TW5 generating filepaths that were longer
than Windows likes.

Fixes #240