Move rebuild instructions into script