Fix build script for allocators where custom scripts are involved.