Update to the upstream smart-change-directory.

Synced with the master branch
pavoljuhas/smart-change-directory@20b5a80cf05f72c07e88a9b166593f52517029e4.
Merge pull request #3081 from pavoljuhas/master

update the scd plugin for smart change of directory.