Revert "fixed build_asf.sh so that the xapi version is not affected"

This reverts commit 2b34dc509aa7a2400ad7db8cae31feb656042119.