[Fix #588] Set default-directory before switching a project
Merge pull request #589 from danskarda/project-switch-fix

[Fix #588] Set default-directory before switching a project