fixed ext configure options building
make sure we exit with some non zero status on errors