[frontend] Fix issue when there exists files in the assignment root directory.