Guard against None cwd