Bugfix: SHA-1 hash is computed from $output now