This prevents the creation of an empty directory if the file to persist doesn't exist on installation (e.g. config files getting created on first startup)