set umask before create files

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>