Fixes to FsDao.add_file