Made view-md.sh more portable.