respect chdir in dependencies