Exec the command and after do the check to get best results and avoid rebuilding ports more than once