Fix FileNotFoundException with Java-based migration files

Java-based migration files are recognized by flyway, but FileNotFoundException is thrown while reading file contents.