Fix some warnings upon creation/deletion of files