fix chdir in init script