Make cwd actually work