expansion issue in external command