Simplified unwanted tilde expansion handling

The idea comes from edkolev/promtline.vim#11