[mms-lib] Make sure that msg directory exists

prior to creating a temporary directory there.