Adding missing steps in check_setup for sucessful building.