chdir issues on production box