added fix for reading version.txt on Java 7