Switch to using ModeFlags in order to specify CREAT and RDWR at the same time