fixed incorrect port check before installing Redis/Sentinel