check --hash is either sha2 or md5 otherwise show error message

git-svn-id: svn://irodssvn.ucsd.edu/trunk@5638 ea137bd6-aa86-47b6-b90d-b101d9f19a90