handle chdir in yo wrapper