Add function to test if the script should use md5sum or md5

It makes the script work on OS X, since `md5sum` does not exist on it but `md5` does.