Set mode when creating a file