add tmpDir for SnModuleInstance