Newer version of the script upstream
Added support for building with OBJDIR