Fix Bug with PATH update for Java 8