fix server binpath, wait for running instead of started