fixes #8378 - set umask to required value for installaton

A umask other than 0022 causes installation failures, so we set it temporarily for the install.