Added autochdir workaround