Fix possible permission issue if umask is off