chdir again after building dependencies, fixes github #79