Fixed hash creation

It is still an ugly hack. But at least all unwanted files and
directories are ommited.

Todo: factor out the now hardcoded values into a list that can be
worked through.