Support making module framework temp dir configurable cc/ @cgoncas