Throw error if fs.open in "rw" mode; fixes #270