reorder commands, export TERM only if not in ubuntu-vm