Improve expand command chain
Move quote expand before word_with_dots
Add debugging option