Fixed file creation detection in kqueue support