fix FileNotFoundException with Java-based migration.