Java processbuilder wait for process to finish