Fix error when there are empty .sql files in the directories.