fw_env: fix incorrect usage of open(O_CREAT)