Get so cwd works when empty in run method