Merge "baseimager: change the mode of 'tmp' dir"