I come up with another solution, this time it's tested thoroughly and works*

*) at least here, hope on yours too. still, in case, anybody have decent bash knowledge, feel free to modify the script to be better, this quoting stuff makes me

UPDATE: Fix a little so that OPT is used instead of CROSSOPT for cpu target same as host