database.add_dir() keeps hashes up-to-date

util.split now uses lists, not tuples