put log and scratch in cwd