fix bug of not using proper erts version if erts path is used