(hopefully) fixed build script