fix some OSX compatibility for dir_checksum.sh