Fixed issue where rebuild redis was putting wrong inactive pid URL in place