`words` is the wrong way to do this. This would break on any directory with spaces in it, even if the user wrote

`:! cd ~/my\ directory`