Thor Emil Granlund, Skattedirektoratet