diff --git a/build_tools/download_externals b/build_tools/download_externals
index efeb6c53c6ffc2b5bbee0298be1c296f4f34fb83..e12feb8fc8fb4f373c100f9d9f468f8c6a51441f 100755
--- a/build_tools/download_externals
+++ b/build_tools/download_externals
@@ -165,7 +165,7 @@ if [[ -f ${DESTDIR}${ASTMODDIR}/${module_name}.manifest.xml ]] ; then
 					fi
 				fi
 
-				cs=$(md5sum ${f} | cut -b1-32)
+				cs=$(${MD5} ${f} | cut -b1-32)
 				if [[ "${cs}" !=  "${sum}" ]] ; then
 					echo Checksum mismatch: ${f}
 					need_install=1