Hacky but functional build script