r4198 add chdir to make it work again