Improvement on buildshots.R by avoiding improperly separating works to each core