Adds some sanity to the 'hash' command.