Include target in git hashing

This fixes #4.