Fixes a typo that prevented the initial file from being written
in the case that it does not exist.