Fixing error in my badly written build script