Fix Mac OS X issues with readlink and md5sum. Fixes #7