Quick hack to get newly created files with the right mode.

This was working before, need to bisect where it broke.