Enable a smooth transition to the current working directory
Enabled a smooth transition to the current working directory when invoking.
This code is from syohex: http://d.hatena.ne.jp/syohex/20110714/1310653273