Correctly call callback on build script injection
Use new API for script and rack injection