Fix problem with cd not working, Issue #1 on github