Fix issue where java path changes and it keeps using the old path