run macports check after failed build instead of before every build

Closes #28717.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>