Get the last index of '.' in a file name in order to address https://github.com/DavidWhitlock/java-koans/issues/8.