File perms fix.

Fixes #246