Guess at flags for files that aren't in the database