Changed bash script to support sum and md5sum