Simplify file argument check.

	No real need to copy the string since it already exists and is
	not expected to be changed.
Write computed hashes to file.