Fix logic in append-file-p to properly add new files