fixed file permissions, patch by Steven Boswell, Bug 1178883