Fix file permission issue when installing gem.

Fixes #4