Fix for local mode ignoring cd context manager
Merge pull request #159 from finder/master

Fix for cd context manager if in local mode