Add more assertions for dx build exit codes