mc_cmds: Set TCID and TST_-variables and use TMPDIR

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>