Folder status not updated by scan

This fixes issue 39.