fix chdir in install