fix 'make flash' and 'make term'