improve prebuild function

* Action in $1
* Only if dl is ok