Fixed java file check skipping by using stat to assert existence.