Calculate md5 in a way that works on Ubuntu